/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package basemodule;

/**
 *
 * @author 334849
 */
public class BaseModule {

    public static void main(String[] args) {
        // TODO code application logic here
        System.out.println("Testing base module !!! \n\n");
        /*             
         //         titanisu.basicMathModule1.LinearEquation.QuestionsGeneratorLinearEquation test = new titanisu.basicMathModule1.LinearEquation.QuestionsGeneratorLinearEquation();
         titanisu.basicMathModule1.LinearEquation.moduleExamControllerLinearEquation lc = new moduleExamControllerLinearEquation();
         lc.startExam();
         


         titanisu.basicMathModule1.quardraticEquation.ExamController qeg = new titanisu.basicMathModule1.quardraticEquation.ExamController();
         qeg.startExam();
        
         

         titanisu.basicMathModule1.quardraticEquation.QuestionGenerator qg = new titanisu.basicMathModule1.quardraticEquation.QuestionGenerator();
         qg.getQuestions();
         

                  
         titanisu.basicMathModule1.fractionsCalculation.ExamController ec = new titanisu.basicMathModule1.fractionsCalculation.ExamController();
         ec.startExam();
         
          
         ExamController ec = new titanisu.basicMathModule1.identityandInfinityRules.ExamController();
         ec.startExam();
          
         titanisu.basicMathModule1.integerAdditioSub.ExamController ec = new titanisu.basicMathModule1.integerAdditioSub.ExamController();
         ec.startExam();
         

              
         titanisu.basicMathModule1.integerMultiplicationDivision.ExamController ec = new titanisu.basicMathModule1.integerMultiplicationDivision.ExamController();
         ec.startExam();

         //to learn identity rule and associative rule a+v = v+a and distributive rule etc..
         titanisu.basicMathModule1.identityAssociativeRules7.ExamController ec = new titanisu.basicMathModule1.identityAssociativeRules7.ExamController();
         ec.startExam();
         
         titanisu.basicMathModule1.mixedtpproperfractionVonversion.ExamController ec = new titanisu.basicMathModule1.mixedtpproperfractionVonversion.ExamController();
         ec.startExam();

            
         titanisu.basicMathModule1.FractionMultiplication.ExamController ec = new titanisu.basicMathModule1.FractionMultiplication.ExamController();
         ec.startExam();


         titanisu.basicMathModule1.DecimalNumberMultiplication.ExamController ec = new titanisu.basicMathModule1.DecimalNumberMultiplication.ExamController();
         ec.startExam();

                
         titanisu.basicMathModule1.DecimalMultAndDivby10mult.ExamController ec = new titanisu.basicMathModule1.DecimalMultAndDivby10mult.ExamController();
         ec.startExam();
        
         titanisu.basicMathModule1.multWithNumberNear10.ExamController ec = new titanisu.basicMathModule1.multWithNumberNear10.ExamController();
         ec.startExam();

         titanisu.basicMathModule1.integerLessthanGreaterthan.ExamController ec = new titanisu.basicMathModule1.integerLessthanGreaterthan.ExamController();
         ec.startExam();
         

         titanisu.basicMathModule1.FractionLessthanGreaterThan.ExamController ec = new titanisu.basicMathModule1.FractionLessthanGreaterThan.ExamController();
         ec.startExam();
         */
        Page1 p1 = new Page1();
        p1.setVisible(true);

        int i = 0;
        while (p1.getProgName() == -10) {
            i++;
//            System.out.println(" the val is " + i);
        }

        switch (p1.getProgName()) {
            case 0:

                titanisu.basicMathModule1.divisibility248.ExamController ec0 = new titanisu.basicMathModule1.divisibility248.ExamController();
                ec0.startExam();

                break;
            case 1:
                titanisu.basicMathModule1.divisibility39.ExamController ec1 = new titanisu.basicMathModule1.divisibility39.ExamController();
                ec1.startExam();
                break;
            case 2:
                titanisu.basicMathModule1.divisibility263.ExamController ec2 = new titanisu.basicMathModule1.divisibility263.ExamController();
                ec2.startExam();
                break;
            case 3:
                titanisu.basicMathModule1.divisibility510.ExamController ec3 = new titanisu.basicMathModule1.divisibility510.ExamController();
                ec3.startExam();
                break;
            case 4:
                titanisu.basicMathModule1.divisibilityAll.ExamController ec4 = new titanisu.basicMathModule1.divisibilityAll.ExamController();
                ec4.startExam();
                break;
            case 5:
                titanisu.basicMathModule1.integerAdditioSub.ExamController ec5 = new titanisu.basicMathModule1.integerAdditioSub.ExamController();
                ec5.startExam();
                break;
            case 6:
                titanisu.basicMathModule1.integerMultiplicationDivision.ExamController ec6 = new titanisu.basicMathModule1.integerMultiplicationDivision.ExamController();
                ec6.startExam();
            default:
                throw new AssertionError();
        }
    }
}
